package com.donzell.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * EcsGoodsCat entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ecs_goods_cat")
public class EcsGoodsCat implements java.io.Serializable {

	// Fields

	private EcsGoodsCatId id;

	// Constructors

	/** default constructor */
	public EcsGoodsCat() {
	}

	/** full constructor */
	public EcsGoodsCat(EcsGoodsCatId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({ @AttributeOverride(name = "goodsId", column = @Column(name = "goods_id", nullable = false) ),
			@AttributeOverride(name = "catId", column = @Column(name = "cat_id", nullable = false) ) })
	public EcsGoodsCatId getId() {
		return this.id;
	}

	public void setId(EcsGoodsCatId id) {
		this.id = id;
	}

}